package com.hzw.saas.web.admin.hpc.param;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author zzl
 * @since 2021/12/15
 */
@Data
@ApiModel("HPC用户账单查询参数")
public class HpcAccountBillParam {

    @ApiModelProperty("检索关键字")
    private String keyword;

    @ApiModelProperty("查询月份，yyyy-MM")
    @DateTimeFormat(pattern = "yyyy-MM")
    @JsonFormat(pattern = "yyyy-MM")
    private Date month;

    @ApiModelProperty("以本月消耗算力排序，0-升序，1-降序（默认）")
    private Integer billUsageSortDesc;

    @ApiModelProperty("以总消耗算力排序，0-升序，1-降序，空-不排序")
    private Integer totalUsageSortDesc;

    @ApiModelProperty("以总剩余算力排序，0-升序，1-降序，空-不排序")
    private Integer totalBalanceSortDesc;

}
